home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / stnvjw20.zip / SETENV.HLP < prev    next >
Text File  |  1992-10-25  |  2KB  |  23 lines

  1. Set Environment Variable Program V2.0 (c) 25-Oct-1992 by John Wolchak.
  2. Usage is:  SETENV <variable> <value>  or  SETENV %rce <variable> <value>
  3.         <variable> by it's self to erase variable.
  4.         <value> can be: '%rep<del><txt1><del><txt2><del>' text replace.
  5.           '%chgup' or 'chglo' upper/lower case environment variable data.
  6.           '%prompt %noecho %upper %def<del><text><del> <message>'.
  7.              '%noecho' for no echo, '%upper' '%lower' upper/lower case only.
  8.              '%def<del><text><del>' supply a default, '%trim' trim spaces.
  9.              '%timo=hh:mm:ss' prompt time out, time length.
  10.         <value> can include keys such as:   ie  setenv drivedir %drive:%cwd
  11.           %dosv / %dosm for DOS major / minor version.
  12.           %cwd or %cfd for current directory,   %drive for drive letter.
  13.           %time / %daten for current time / date format 'n'.
  14.           %+n / %-n for default drive plus / minus 'n'.
  15.           %loc/<n>/<var>/<str>/  %len/<var>/  %sum/<var>/<n>/
  16.           %mid/<var>/<n1>/<n2>/  %elem/<n>/<char>/<var>/  %chr/<n>/
  17. Note:     Use %% to represent a single % in BAT files.
  18.        SETENV return codes:             no command, help issued         00h
  19. root environment set            01h     environment variable erased     02h
  20. environment variable created    03h     don't know about MS-DOS V1.x    04h
  21. environment variable updated    05h     unmatched delimiter             06h
  22. not a valid argument            07h     environment variable not found  08h
  23. offset drive will be invalid    09h     environment space is full       10h